import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"



// 获取标签
export const findPermissionsApi = (data) => {
    return httpPost('/permissions/search', data)
}
// 添加标签
export const addPermissionsApi = (data) => {
    return httpPost('/permissions/add', data)
}
// 删除标签
export const deletePermissionsApi = (data) => {
    return httpDelete('/permissions/remove', data)
}
// 修改标签
export const updatePermissionsApi = (data) => {
    return httpPut('/permissions/update', data)
}
// 获取一个标签的详情
export const getPermissionsByIdApi = (data) => {
    return httpGet('/permissions/detail', data)
}